/* clipboard.h */

#ifndef CLIPBOARD_H_
#define CLIPBOARD_H_

#include "buffer.h"

typedef enum{CLIP_STRING, CLIP_BUFFER} cliptype;

typedef struct bufstack{
	buf_t **stack;
	int buf_num;
}bufstack_t;

typedef struct clip{
	cliptype clip_type;
	char * string;
	bufstack_t buf_stack;
}clip_t;

typedef struct clipboard{
	clip_t *clip;
} clipboard_t;

clip_t * clip_new(void);

int clip_free(clip_t * clip);

int clipboard_add_clip(clipboard_t * cb, clip_t * clip);

int clipboard_clear(clipboard_t * cb);

int allocate_buf_array(bufstack_t * bs, int buf_num);

#endif /* CLIPBOARD_H_ */
